home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13188 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  998 b 

  1. Path: mother.usf.edu!suntan!cdiaz
  2. From: "Carlos Diaz (CS)" <cdiaz@eng.usf.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: delays: creating time delays with time.h (unix c)
  5. Date: Thu, 4 Apr 1996 21:13:31 -0500
  6. Organization: University of South Florida
  7. Message-ID: <Pine.SUN.3.92.960404210632.28756A-100000@suntan>
  8. NNTP-Posting-Host: suntan.eng.usf.edu
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11. X-Sender: cdiaz@suntan
  12.  
  13. Hello! I'm trying to figure out if I can use the standard library (time.h)
  14. to create a delay function where the program will pause for x amount of
  15. time before continuing. 'x' I need it to be a value representing either
  16. 10th of a second or 100th of a second.
  17.  
  18. Please, no references to using non-standard libraries: this code has to be
  19. as platform independent as possible.
  20.  
  21. On that same note, suppose I have a variable getting the value from the
  22. clock() function... how do I print the variable (of type clock_t or
  23. time_t)? Thanks for your help!
  24.  
  25. Sincerely,
  26. Carlos E. Diaz
  27.  
  28.  
  29.